<?php
namespace Operationtest\Model;

class Budget {
    public $idBudget;
    public $idStore;
    public $month;
    public $nbWeek1;
    public $nbWeek2;
    public $nbWeek3;
    public $nbWeek4;
    public $nbWeek5;
    public $nbWeek6;
    public $totttc;
    public $tm;
    public $txFpR;
    public $txPc;
    public $txRp;
    public $txA;
    public $txAl;
    public $txE;
    public $idMarche;
    
    public function exchangeArray($data) {
        $this->idBudget = (isset($data['idBudget'])) ? $data['idBudget'] : null;
        $this->idStore = (isset($data['idStore'])) ? $data['idStore'] : null;
        $this->month = (isset($data['month'])) ? $data['month'] : null;
        $this->nbWeek1 = (isset($data['nbWeek1'])) ? $data['nbWeek1'] : null;
        $this->nbWeek2 = (isset($data['nbWeek2'])) ? $data['nbWeek2'] : null;
        $this->nbWeek3 = (isset($data['nbWeek3'])) ? $data['nbWeek3'] : null;
        $this->nbWeek4 = (isset($data['nbWeek4'])) ? $data['nbWeek4'] : null;
        $this->nbWeek5 = (isset($data['nbWeek5'])) ? $data['nbWeek5'] : null;
        $this->nbWeek6 = (isset($data['nbWeek6'])) ? $data['nbWeek6'] : null;
        $this->totttc = (isset($data['totttc'])) ? $data['totttc'] : null;
        $this->tm = (isset($data['tm'])) ? $data['tm'] : null;
        $this->txFpR = (isset($data['txFpR'])) ? $data['txFpR'] : null;
        $this->txPc = (isset($data['txPc'])) ? $data['txPc'] : null;
        $this->txRp = (isset($data['txRp'])) ? $data['txRp'] : null;
        $this->txA = (isset($data['txA'])) ? $data['txA'] : null;
        $this->txAl = (isset($data['txAl'])) ? $data['txAl'] : null;
        $this->txE = (isset($data['txE'])) ? $data['txE'] : null;
        $this->idMarche = (@isset($data['idMarche'])) ? @$data['idMarche'] : null;
    }
}
